statement = ms("Find the greatest common divisor of %x{42} and %y{91}.");
answer = ms("%ans{7}");

//import('myscript');
//println(extern);

/* function gcd(x,y) {
  while (x != 0 && y != 0)  {
    if (x > y)
	x = x % y;
    else
        y = y % x;
  }
  return x + y;
} */

x = rnd(100, 1000);
y = rnd(100, 1000);

statement.x = x;
statement.y = y;
ans = meval(sprintf("gcd(%s, %s)", x, y));
//ans = gcd(x,y);
answer.ans = ans;
assert(ans>=5);

println(sprintf("x is equal to %s", x));
println(php("php is %x times cooler than sprintf"));